/**
 * 
 */
package multithreading;

import optimization.naturalOptimization.population.individual.Individual;

/**
 * This class provides the multi threading computation of Individual steps.
 * 
 * @author Kevin Wagner
 * @version 1.0
 */
public class IndividualStepper extends Thread {

	@SuppressWarnings("rawtypes")
	private Individual individual;

	/**
	 * Creates a new thread to do the calculations of a Individual in a own
	 * thread.
	 * 
	 * @param individual
	 *            the particle to step into the next generation
	 */
	@SuppressWarnings("rawtypes")
	public IndividualStepper(Individual individual) {
		this.individual = individual;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Thread#run()
	 */
	public void run() {
		individual.performStep();
	}

}
